package com.example.chinesenation.Service.Impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.chinesenation.Entity.Log;
import com.example.chinesenation.Service.ILogService;
import com.example.chinesenation.Mapper.LogMapper;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sakuraFallingDown
 * @since 2021-01-12
 */
@Service
public class LogServiceImpl extends ServiceImpl<LogMapper, Log> implements ILogService {
    @Override
    public void saveLog(String browse, String ip, String uid) {
        Log log=new Log();
        log.setUid(uid);
        log.setIp(ip);
        log.setBrowser(browse);
        save(log);
    }
}
